package com.ericsson.eritask;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AssignTaskController {
	
	private static final Logger logger = LoggerFactory.getLogger(AssignTaskController.class);
	
	@RequestMapping(value="/myTask")
	public String login(Locale locale, Model model, HttpServletRequest request)
	{
		System.out.println("-------------------AssignTaskController---------------------------------");
		String username = request.getParameter("username");
		String password = request.getParameter("password");
		System.out.println("username = "+username);
		System.out.println("password = "+password);
		model.addAttribute("login", username);
		return "MyTask";
	}

}
